package com.hundunjiang.BlogWebServer.config;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.hundunjiang.CommonServer.config.BaseSwaggerConfig;
import com.hundunjiang.CommonServer.domain.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
@EnableKnife4j
public class Swagger2Config extends BaseSwaggerConfig {

    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.hundunjiang.BlogWebServer.controller")
                .title("博客网页端")
                .description("博客网页端接口描述")
                .contactName("混沌酱")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}